package com.rural.bus;

import java.util.Calendar;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.rural.bus.utils.DateTimePickDialogUtil;

/***
 * 预约
 * @author majie
 *
 */
public class SubscribeRailwayActivity extends CommonRailrayActivity {
	
	@Override
	protected void setListeners() {
		super.setListeners();
		mTvTime.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				timeDialog();
			}
		});
	}

	private void timeDialog() {
		Calendar c=Calendar.getInstance();
		String initEndDateTime=c.get(Calendar.YEAR)+"年"+(c.get(Calendar.MONTH)+1)+"月"
		+c.get(Calendar.DAY_OF_MONTH)+"日 "+c.get(Calendar.HOUR_OF_DAY)+":"+c.get(Calendar.MINUTE);
		 DateTimePickDialogUtil dateTimePicKDialog = new DateTimePickDialogUtil(  
                 this, initEndDateTime);  
         dateTimePicKDialog.dateTimePicKDialog(mTvTime);  

	}
	
}
